body {
  font-family: "Segoe UI", sans-serif;
  padding: 40px;
  background: linear-gradient(to right, #ffffff, #eaf6ff);
  color: #333;
}

h1 {
  color: #2c3e50;
}

h2 {
  color: #0077cc;
  margin-top: 40px;
}

/* Bloque de explicación */
.explicacion {
  background-color: #eef7ff;
  padding: 20px 25px;
  border-left: 6px solid #0077cc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.explicacion code {
  background-color: #ddeeff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
}

/* Elementos redimensionables */
.resize-horizontal,
.resize-vertical,
.resize-both {
  border: 2px dashed #888;
  background-color: #fff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.05);
}

.resize-horizontal {
  resize: horizontal;
  overflow: auto;
  width: 300px;
}

.resize-vertical {
  resize: vertical;
  overflow: auto;
  height: 100px;
  width: 300px;
}

.resize-both {
  resize: both;
  overflow: auto;
  width: 300px;
  height: 100px;
}

.no-resize {
  resize: none;
  width: 300px;
  height: 80px;
  padding: 10px;
  border: 1px solid #999;
  border-radius: 5px;
  background-color: #f2f2f2;
}

/* Outline */
.ex1 {
  margin: 20px;
  border: 2px solid #555;
  outline: 4px solid #e74c3c;
  outline-offset: 12px;
  padding: 12px;
  border-radius: 5px;
  background-color: #fff6f6;
}

.ex2 {
  margin: 20px;
  border: 2px solid #555;
  outline: 4px dashed #2980b9;
  outline-offset: 8px;
  padding: 12px;
  border-radius: 5px;
  background-color: #f0f8ff;
}
